#include "stm32f10x.h"    
#include "Function.h" 

//uint16_t ADF[4];
//uint8_t TDS[6] = {0},flag_arrows = 1,flag_sure = 0;
//float Tur_V,PH_V,Tur,PH;
//short Temp;
int main(void)
{
	Function_Init();
	while(1)
	{
		Function_Mode();
		/*Send_Start();
		Tur_V=(float )ADF[0]/4095*3.3;
		Tur=(-865.68)*Tur_V*2+3011.3;
		PH_V=(float )ADF[1]/4095*3.3;
		PH=(-5.7541)*PH_V+16.654;
		 
		if (DS18B20_Init()==0)
		{
			DS18B20_Start();
			Temp=DS18B20_Get_Temp();
			OLED_ShowNum (3,11,Temp,1);
			Temp=Temp/10;
			OLED_ShowNum (3,8,Temp,2);
		}
		OLED_ShowNum (1,8,Tur,4);
		if (PH<14)
		{
			OLED_ShowNum (2,8,PH,2);
			OLED_ShowNum (2,11,(uint16_t )(PH*100)%100,2);
		}
		OLED_ShowNum (4,8,TDS[1]*16*16+TDS[2],4);
		Delay_ms(1000);*/
	}
}
